package com.customview.customePro;

import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;

import com.customview.R;

/**
 * @author Sandsboy
 * @description:广州皓醒科技有限公司
 * @date :2020/9/17 11:11
 */
public class CustomPro extends View {

    private float mWidth;
    public CustomPro(Context context) {
       this(context,null);
    }

    public CustomPro(Context context, @Nullable AttributeSet attrs) {
        this(context,attrs,0);

    }

    public CustomPro(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);

        TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.CustomPro,defStyleAttr,0);
        mWidth=typedArray.getDimension(R.styleable.CustomPro_mWidth,0);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
}
